//
// Created by Kame.Liang on 2021/9/13.
//

#ifndef UNTITLED1_CFACTORY1_H
#define UNTITLED1_CFACTORY1_H
#include "AbstractFactory.h"
#include "ReflectFactory.h"
#include "CHorseAni.h"
#include "CRose.h"
class CFactory1{
    DECLARE_CLASS(CFactory1)
public:
    virtual IPlant *makePlant(){
        return new (std::nothrow)CRose();
    }

    virtual IAnimal *makeAnimal(){
        return new (std::nothrow)CHorseAni();
    }

};

IMPLEMENT_CLASS(CFactory1)
#endif //UNTITLED1_CFACTORY1_H
